@import './element/element-variables.scss';
@import './element/index.scss';
@import './gflex.scss';
@import './gmarpad.scss';
@import './gfont.scss';
@import './gfontbold.scss';

div,
header,
footer {
  box-sizing: border-box; 
}
p {
  margin: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  // 去除 ios下 下拉橡皮筋效果
  overscroll-behavior: none;
}

* {
  &::-webkit-scrollbar-track-piece {
    background: transparent;
    
  }

  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #dddee0;
    border-radius: 20px;
    &:hover {
      background: #909399;
    }
  }
}

#app, #supplier {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #51596c;
  width: 100%;
  height: 100%;
  min-width: 1200px;
}

// 进度条
#nprogress .bar {
  background: $themeColor !important;
}

// 超出隐藏
.g-ell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

// 多行超出隐藏 2行
.g-ells-2 {
  overflow: hidden;
  text-overflow: -o-ellipsis-lastline;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

// 多行超出隐藏 3行
.g-ells-3 {
  overflow: hidden;
  text-overflow: -o-ellipsis-lastline;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

//清除浮动
.g-clearfix {
  &:after {
    content: '';
    display: block; //table 或者list-item
    clear: both;
  }
}

// 光标：小手
.g-cur-poi {
  cursor: pointer;
}

// 光标：默认样式
.g-cur-def {
  cursor: default;
}

// 表单中text类型的button样式
.g-form-text-button {
  padding: 0;
  height: 26px;
}

.g-wrap {
  padding-top: 8px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type='number'] {
  -moz-appearance: textfield;
  line-height: 1px !important;
}

.g-w100p {
  width: 100%;
}

.g-h100p {
  height: 100%;
}
.g-page-wrap {
  margin: 0 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.g-link {
  text-decoration: underline;
  color: #0A1F33; 
  cursor: pointer;
  width: fit-content;
}
.c-header {
  width: 100%;
  height: 56px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  color: #0A1F33;
}
.c-content {
  margin: 16px;
  background: #ffffff;
  border-radius: 3px;
}
.g-export-file-loading {
  z-index: 9999 !important;
}


:root {
  --el-color-primary-dark-2: #028968;
  --el-color-primary-light-3: #35bc9b;
  --el-color-danger-dark-2: #cc3920;
  --el-color-danger-light-3: #ff6c53ff;
  --el-color-error-light-9: #ffedea;
  --el-menu-item-height: 40px;
  --el-text-color-disabled: #96a7b3;
  --el-border-color-hover: #03ac82;
  --el-border-color: #ebeff2;
  --el-fill-color-light: #edf2f7;
  --el-border-color-extra-light: #f3f7fb;
  --el-font-weight-primary: 400;
}
